package com.zsl.picture.wx.controller;

import com.zsl.picture.wx.entity.WxValidated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zsl
 * @date 2022/1/18
 * @email 154777150@qq.com
 */
@RestController
@RequestMapping("/wxValidated")
public class WxValidatedController {

    @GetMapping
    public String wx(WxValidated wxValidated){
        System.out.println(wxValidated.getSignature());
        System.out.println(wxValidated.getTimestamp());
        System.out.println(wxValidated.getNonce());
        System.out.println(wxValidated.getEchostr());
        return wxValidated.getEchostr();
    }
}
